

# getFirestoreBrowserMethods

<div class="api-docs__separator" data-reactroot="">

---

</div><div class="api-docs__import" data-reactroot="">

```ts
import { getFirestoreBrowserMethods } from "@hyper-fetch/firebase"
```

</div><div class="api-docs__section">

## Description

</div><div class="api-docs__description"><span class="api-docs__do-not-parse">



</span></div><p class="api-docs__definition">

Defined in [firestore/firestore.methods.ts:25](https://github.com/BetterTyped/hyper-fetch/blob/cc329b91/packages/adapter-firebase/src/firestore/firestore.methods.ts#L25)

</p><div class="api-docs__section">

## Preview

</div><div class="api-docs__preview fn">

```ts
getFirestoreBrowserMethods<R>(request, database, url, onSuccess, onError, resolve, events)
```

</div><div class="api-docs__section">

## Parameters

</div><div class="api-docs__parameters"><table><thead><tr><th>Name</th><th>Details</th></tr></thead><tbody><tr param-data="request"><td class="api-docs__param-name required">

### request 

`Required`

</td><td class="api-docs__param-type">

`R`

</td></tr><tr param-data="database"><td class="api-docs__param-name required">

### database 

`Required`

</td><td class="api-docs__param-type">

`Firestore`

</td></tr><tr param-data="url"><td class="api-docs__param-name required">

### url 

`Required`

</td><td class="api-docs__param-type">

`string`

</td></tr><tr param-data="onSuccess"><td class="api-docs__param-name required">

### onSuccess 

`Required`

</td><td class="api-docs__param-type">

`any`

</td></tr><tr param-data="onError"><td class="api-docs__param-name required">

### onError 

`Required`

</td><td class="api-docs__param-type">

`any`

</td></tr><tr param-data="resolve"><td class="api-docs__param-name required">

### resolve 

`Required`

</td><td class="api-docs__param-type">

`any`

</td></tr><tr param-data="events"><td class="api-docs__param-name required">

### events 

`Required`

</td><td class="api-docs__param-type">

`{ onRequestEnd: any; onRequestStart: any; onResponseEnd: any; onResponseStart: any }`

</td></tr></tbody></table></div><div class="api-docs__section">

## Returns

</div><div class="api-docs__returns">

```ts
(methodName: FirestoreMethodsUnion, data: [object Object]) => Promise<void>
```

</div>